
package system.data;

import system.base.Warehouse;
import framework.core.*;
/*
	Author    :Benny
	CreateTime:2008-05-13 14:42:07
*/
public class StorageMonthOutPageData extends PageData
{

	private String m_id = "";

	private String m_warehouse_code = "";

	private String m_balance_time = "";

	private String m_category_code = "";

	private String m_product_money = "";
	
	private String m_warehouse_name = "";
	

public StorageMonthOutPageData() 
{
	super();
}


	public String getId()
	{
		return m_id;
	}
	public void setId(String v)
	{
		m_id = v;
	}
	

	public String getWarehouseCode()
	{
		return m_warehouse_code;
	}
	public void setWarehouseCode(String v,DBConnection con)
	{
	    this.setWarehouseName(v,con);
		m_warehouse_code = v;
	}
	

	public String getBalanceTime()
	{
		return m_balance_time;
	}
	public void setBalanceTime(String v)
	{
		m_balance_time = v;
	}
	

	public String getCategoryCode()
	{
		return m_category_code;
	}
	public void setCategoryCode(String v)
	{
		m_category_code = v;
	}
	

	public String getProductMoney()
	{
		return m_product_money;
	}
	public void setProductMoney(String v)
	{
		m_product_money = v;
	}
	
	


	public String viewId(DBConnection con) throws Exception
	{
		return Value.view(getId());
	}

	public String viewWarehouseCode(DBConnection con) throws Exception
	{
		return Value.view(getWarehouseCode());
	}

	public String viewBalanceTime(DBConnection con) throws Exception
	{
		return Value.view(getBalanceTime());
	}

	public String viewCategoryCode(DBConnection con) throws Exception
	{
		return Value.view(getCategoryCode());
	}

	public String viewProductMoney(DBConnection con) throws Exception
	{
		return Value.view(getProductMoney());
	}


    /**
     * @return the m_warehouse_name
     */
    public String getWarehouseName() {
        return this.m_warehouse_name;
    }


    /**
     * @param aM_warehouse_name the m_warehouse_name to set
     */
    public void setWarehouseName(String code,DBConnection con) {
        try {
            this.m_warehouse_name = Warehouse.getNameByCode(con, code);
        } catch (Exception e) {
            
            e.printStackTrace();
        }
    }
}
